<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Storage;

class KongSaiEnApiController extends Controller
{
    private $baseUrl = "";  

    //如果希望多台面板，可以在实例化对象时，将面板地址与密钥传入
    public function __construct($ip='192.168.8.250',$port='9001'){
        $this->baseUrl = "{$ip}:{$port}";
    }

    //地址可用性测试
    public function test(){
        $url = $this->baseUrl."/app/TestConnect?id=1";
        return curl($url);
    }

    //登录
    public function login(){
        
    }

}
